@import "./InvisibleTextStyles.css";
@import "./GrowingButton.css";

:host(:not([hidden])) {
	display: block;
	max-width: 100%;
	width: 100%;
	-webkit-tap-highlight-color: transparent;
}

:host([indent]) .ui5-list-root {
	padding: 2rem;
}

:host([separators="None"]) .ui5-list-nodata {
	border-bottom: 0;
}

.ui5-list-root,
.ui5-list-busy-indicator {
	width: 100%;
	height: 100%;
	position: relative;
	box-sizing: border-box;
}

.ui5-list-scroll-container {
	overflow: auto;
	height: 100%;
	width: 100%;
}

.ui5-list-ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

.ui5-list-ul:focus {
	outline: none;
}

.ui5-list-focusarea {
	position: fixed; /* keep it in the visible viewport, so that IE does not scroll on focus */
}

.ui5-list-header {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	box-sizing: border-box;
	font-size: var(--sapFontHeader4Size); 
	font-family: var(--sapFontFamily);
	color: var(--sapGroup_TitleTextColor);
	height: 3rem;
	line-height: 3rem;
	padding: 0 1rem;
	background-color: var(--sapGroup_TitleBackground);
	border-bottom: 1px solid var(--sapGroup_TitleBorderColor);
}

.ui5-list-footer {
	height: 2rem;
	box-sizing: border-box;
	-webkit-text-size-adjust: none;	/* To improve readability Mobile Safari automatically increases the size of small text so let's disable this */
	font-size: var(--sapFontSize);
	font-family: var(--sapFontFamily);
	line-height: 2rem;
	background-color: var(--sapList_FooterBackground);
	color: var(--ui5_list_footer_text_color);
	padding: 0 1rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ui5-list-nodata {
	list-style-type: none;
	display: -webkit-box;
	display: flex;
	-webkit-box-align: center;
	align-items: center;
	-webkit-box-pack: center;
	justify-content: center;
	color: var(--sapTextColor);
	background-color: var(--sapList_Background);
	border-bottom: 1px solid var(--sapList_BorderColor);
	padding: 0 1rem !important;
	outline: none;
    min-height: var(--_ui5_list_no_data_height);
	font-size: var(--_ui5_list_no_data_font_size);
	font-family: var(--sapFontFamily);
	position: relative;
}

.ui5-list-nodata:focus::after {
	content: "";
	border: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);
	position: absolute;
	inset: 0.125rem;
	pointer-events: none;
}

.ui5-list-nodata-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
    margin: var(--_ui5_list_item_content_vertical_offset) 0;
}

:host([growing="Scroll"]) .ui5-list-end-marker {
	/* Ensure the list-end-marker has a block property to always be stretched and "visible" on the screen */
	display: inline-block;
}